import request from './axios'

/**
 * 获取敏感词列表
 * @returns {*}
 */
export const getSensitiveList = () => {
    return request({
        url:'/admin/getSensitiveList',
        method:'get'
    })
}

/**
 * 添加敏感词列表
 * @returns {*}
 */
export const addSensitive = (sensitive) => {
    return request({
        url:'/admin/addSensitive',
        method:'post',
        params:{
            sensitive
        }
    })
}

/**
 * 移除敏感词列表
 * @returns {*}
 */
export const removeSensitive = (sensitive) => {
    return request({
        url:'/admin/removeSensitive',
        method:'get',
        params:{
            sensitive
        }
    })
}
